jade.content.acl
Class CommunicativeActBase

java.lang.Object
  |
  +--jade.content.acl.CommunicativeActBase
Direct Known Subclasses:
Inform, QueryRef, Request

public class CommunicativeActBase
extends java.lang.Object
implements CommunicativeAct

Author:
Federico Bergenti - Universita` di Parma

Constructor Summary
CommunicativeActBase()
          Constructor.
 
Method Summary
 void addReceiver(AID aid)
          Add a new receiver to the list.
 void clearAllReceiver()
          Clears the receiver list.
 Iterator getAllReceiver()
          Retrieves the receivers.
 AID getSender()
          Retrieves the sender.
 void setSender(AID sender)
          Sets the sender.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommunicativeActBase

public CommunicativeActBase()
Constructor.
Method Detail

setSender

public void setSender(AID sender)
Sets the sender.
Specified by:
setSender in interface CommunicativeAct
Parameters:
sender - the sender.

getSender

public AID getSender()
Retrieves the sender.
Specified by:
getSender in interface CommunicativeAct
Returns:
the sender.

clearAllReceiver

public void clearAllReceiver()
Clears the receiver list.
Specified by:
clearAllReceiver in interface CommunicativeAct
Parameters:
receivers - the receivers.

getAllReceiver

public Iterator getAllReceiver()
Retrieves the receivers.
Specified by:
getAllReceiver in interface CommunicativeAct
Returns:
the receivers.

addReceiver

public void addReceiver(AID aid)
Add a new receiver to the list.
Specified by:
addReceiver in interface CommunicativeAct
Parameters:
aid - the AID of the receiver.